package com.ny.dao;

import com.ny.entity.Student;

import java.sql.SQLException;
import java.util.List;

public interface StudentDao {
    int add(Student student) throws SQLException;
    Student login(String studentName, String studentPassword) throws SQLException;
    public List<Student> findAllStudent() throws SQLException;

    boolean updateStudentPassword(int studentId, String studentPassword) throws SQLException;
    boolean deleteStudent(int deleteId) throws SQLException;
}
